<template>
  <div>
    <a-card>
      <p class="text-lg font-bold">系统日志</p>
      <vxe-grid ref="xGrid" v-bind="gridOptions" v-on="gridEvent">
      </vxe-grid>
    </a-card>
  </div>
</template>

<script setup lang="ts">
import { VxeUI } from "vxe-pc-ui";
const { gridOptions } = useSyslog();
import XEUtils from "xe-utils";

const xGrid = ref();
const gridEvent: VxeGridListeners<RowVO> = {
  proxyQuery() {
    console.log("数据代理查询事件");
    const grid = xGrid.value;
    // 获取表格中的数据
    // const data = grid.getTableData().fullData;
    // console.log(data);
  },
  proxyDelete() {
    console.log("数据代理删除事件");
  },
  proxySave() {
    console.log("数据代理保存事件");
  },
};

</script>

<style></style>
